

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=&#34;auto&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/ttntt.gitee.io/img/logo.png">
  <link rel="icon" type="image/png" href="/ttntt.gitee.io/img/logo.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="一个不甘做程序员的后端程序员">
  <meta name="author" content="nigntbird">
  <meta name="keywords" content="">
  <title>nigntbird 的个人博客</title>

  <link  rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_pf9vaxs7x7b.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/ttntt.gitee.io/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script  src="/ttntt.gitee.io/js/utils.js" ></script>
  <script  src="/ttntt.gitee.io/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.2.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/ttntt.gitee.io/">&nbsp;<strong>nigntbird 的个人博客</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/ttntt.gitee.io/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/ttntt.gitee.io/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/ttntt.gitee.io/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/ttntt.gitee.io/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/ttntt.gitee.io/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" href="javascript:">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner intro-2" id="background" parallax=true
         style="background: url('/ttntt.gitee.io/img/bg.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="container page-header text-center fade-in-up">
            <span class="h2" id="subtitle">
              
            </span>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-md">
        <div class="py-5" id="board"
          >
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/ttntt.gitee.io/2020/11/25/skill/%E4%BD%BF%E7%94%A8IDEA%E6%90%AD%E5%BB%BAjdk%E6%BA%90%E7%A0%81%E9%98%85%E8%AF%BB%E7%8E%AF%E5%A2%83/">使用IDEA搭建jdk源码阅读环境</a>
      </h1>

      <p class="index-excerpt">
        <a href="/ttntt.gitee.io/2020/11/25/skill/%E4%BD%BF%E7%94%A8IDEA%E6%90%AD%E5%BB%BAjdk%E6%BA%90%E7%A0%81%E9%98%85%E8%AF%BB%E7%8E%AF%E5%A2%83/">
          
          
            
          
          找到源码位置在安装JDK的位置找到src.zip和javafx-src.zip，解压
如果忘了，可以在IDEA中找到目录(Projuect Structure)


IDEA搭建第一步：新建项目打开IDEA，按如下步骤新建一个简单Java项目，也可以是maven等项目
create new project

新建一个简单Java项目

点击finish后，项目就创建好了
第二步：添加源码将之前解压
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-11-25 21:15" pubdate>
              2020-11-25
            </time>
          </div>
        
        
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/ttntt.gitee.io/2020/11/06/basic/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9B%B8%E5%85%B3/">操作系统相关</a>
      </h1>

      <p class="index-excerpt">
        <a href="/ttntt.gitee.io/2020/11/06/basic/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9B%B8%E5%85%B3/">
          
          
            
          
          IOBIO因为早期的操作系统内核没有提供NIO，所以，早期的tomcat使用的即是BIO(block)，1.等待客户端连接会阻塞一次，2.等待客户端发送消息又会阻塞一次。
NIO因为操作系统内核新增了(non-block IO)NIO，所以才有了软件的(new IO)NIO。
什么是系统调用？
以前，用户程序可以直接调用内核(kernel)中函数去操作内存地址，但是为了安全，把地址换了（怎么换的我
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-11-06 15:42" pubdate>
              2020-11-06
            </time>
          </div>
        
        
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/ttntt.gitee.io/2020/10/13/algorithm/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%B8%8E%E7%AE%97%E6%B3%95/">数据结构与算法</a>
      </h1>

      <p class="index-excerpt">
        <a href="/ttntt.gitee.io/2020/10/13/algorithm/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%B8%8E%E7%AE%97%E6%B3%95/">
          
          
            
          
          排序算法 

平方阶 (O(n2)) 排序 各类简单排序：直接插入、直接选择和冒泡排序。

线性对数阶 (O(nlog2n=nlogn)) 排序 快速排序、堆排序和归并排序；

O(n1+§)) 排序，§ 是介于 0 和 1 之间的常数。 希尔排序

线性阶 (O(n)) 排序 基数排序，此外还有桶、箱排序。



        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-10-13 09:37" pubdate>
              2020-10-13
            </time>
          </div>
        
        
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/ttntt.gitee.io/2020/10/13/basic/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E7%A1%80/" target="_self">
          <img src="/ttntt.gitee.io/img/blog_img.jpg" srcset="/ttntt.gitee.io/img/loading.gif" alt="数据库基础">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        <a href="/ttntt.gitee.io/2020/10/13/basic/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E7%A1%80/">数据库基础</a>
      </h1>

      <p class="index-excerpt">
        <a href="/ttntt.gitee.io/2020/10/13/basic/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E7%A1%80/">
          
          
            
          
          ACID
原子性（Atomicity）原子性是指事务是一个不可分割的工作单位，事务中的操作要么都发生，要么都不发生。
一致性（Consistency）事务前后数据的完整性必须保持一致。
隔离性（Isolation）事务的隔离性是多个用户并发访问数据库时，数据库为每一个用户开启的事务，不能被其他事务的操作数据所干扰，多个并发事务之间要相互隔离。
持久性（Durability）持久性是指一个事务一旦被
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-10-13 09:21" pubdate>
              2020-10-13
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/ttntt.gitee.io/categories/%E5%9F%BA%E7%A1%80/">基础</a>
            
              <a href="/ttntt.gitee.io/categories/%E5%9F%BA%E7%A1%80/%E6%95%B0%E6%8D%AE%E5%BA%93/">数据库</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/ttntt.gitee.io/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/">数据库</a>
            
              <a href="/ttntt.gitee.io/tags/MySQL/">MySQL</a>
            
              <a href="/ttntt.gitee.io/tags/Oracle/">Oracle</a>
            
              <a href="/ttntt.gitee.io/tags/%E9%9D%9E%E5%85%B3%E7%B3%BB%E6%95%B0%E6%8D%AE%E5%BA%93/">非关系数据库</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/ttntt.gitee.io/2020/10/12/skill/%E4%BD%BF%E7%94%A8hexo-github%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E8%BF%87%E7%A8%8B%E4%B8%AD%E7%9A%84%E4%B8%80%E4%BA%9B%E5%9D%91/" target="_self">
          <img src="/ttntt.gitee.io/img/blog_img.jpg" srcset="/ttntt.gitee.io/img/loading.gif" alt="使用hexo+github搭建个人博客过程中的一些坑">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        <a href="/ttntt.gitee.io/2020/10/12/skill/%E4%BD%BF%E7%94%A8hexo-github%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E8%BF%87%E7%A8%8B%E4%B8%AD%E7%9A%84%E4%B8%80%E4%BA%9B%E5%9D%91/">使用hexo+github搭建个人博客过程中的一些坑</a>
      </h1>

      <p class="index-excerpt">
        <a href="/ttntt.gitee.io/2020/10/12/skill/%E4%BD%BF%E7%94%A8hexo-github%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E8%BF%87%E7%A8%8B%E4%B8%AD%E7%9A%84%E4%B8%80%E4%BA%9B%E5%9D%91/">
          
          
            
          
          安装 hexo 并选择主题大概步骤就是:
1. $ npm install -g hexo-cli
2. $ hexo init &lt;folder&gt;
   $ cd &lt;folder&gt;
3. $ npm install

不懂的按着 官方文档 的步骤做不会出现什么问题.唯一有点问题的是第2步下载主题的时候很慢而且没有进度条,可能以为卡住了,所以我直接在github 上找了一个好
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-10-12 15:43" pubdate>
              2020-10-12
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/ttntt.gitee.io/categories/%E6%8A%80%E6%9C%AF%E6%96%87%E7%AB%A0/">技术文章</a>
            
              <a href="/ttntt.gitee.io/categories/%E6%8A%80%E6%9C%AF%E6%96%87%E7%AB%A0/%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8/">工具使用</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/ttntt.gitee.io/tags/%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8/">工具使用</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/ttntt.gitee.io/2020/10/12/skill/Springboot-MyBatisPlus%E6%A0%B9%E6%8D%AE%E6%95%B0%E6%8D%AE%E5%BA%93%E8%87%AA%E5%8A%A8%E7%94%9F%E6%88%90%E4%BB%A3%E7%A0%81%E6%A8%A1%E7%89%88/" target="_self">
          <img src="/ttntt.gitee.io/img/blog_img.jpg" srcset="/ttntt.gitee.io/img/loading.gif" alt="Springboot+MyBatisPlus根据数据库自动生成代码模版">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        <a href="/ttntt.gitee.io/2020/10/12/skill/Springboot-MyBatisPlus%E6%A0%B9%E6%8D%AE%E6%95%B0%E6%8D%AE%E5%BA%93%E8%87%AA%E5%8A%A8%E7%94%9F%E6%88%90%E4%BB%A3%E7%A0%81%E6%A8%A1%E7%89%88/">Springboot+MyBatisPlus根据数据库自动生成代码模版</a>
      </h1>

      <p class="index-excerpt">
        <a href="/ttntt.gitee.io/2020/10/12/skill/Springboot-MyBatisPlus%E6%A0%B9%E6%8D%AE%E6%95%B0%E6%8D%AE%E5%BA%93%E8%87%AA%E5%8A%A8%E7%94%9F%E6%88%90%E4%BB%A3%E7%A0%81%E6%A8%A1%E7%89%88/">
          
          
            
          
          此项目无需像官方提供的例子一样使用控制台进行一个表一个表的输入,然后生成,只需改一下数据库地址即可生成,非常方便~ 具体操作见项目的README
项目源码地址代码生成效果截图:以下是整体代码结构和Controller层的模版代码,可根据需要增删:
是基于freemark模版制作的模版生成器.

        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-10-12 13:17" pubdate>
              2020-10-12
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/ttntt.gitee.io/categories/%E6%8A%80%E6%9C%AF%E6%96%87%E7%AB%A0/">技术文章</a>
            
              <a href="/ttntt.gitee.io/categories/%E6%8A%80%E6%9C%AF%E6%96%87%E7%AB%A0/%E6%A1%86%E6%9E%B6/">框架</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/ttntt.gitee.io/tags/Spring-Boot/">Spring Boot</a>
            
              <a href="/ttntt.gitee.io/tags/MyBatis-Plus/">MyBatis Plus</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E5%AE%89%E5%85%A8/" target="_self">
          <img src="/ttntt.gitee.io/img/blog_img.jpg" srcset="/ttntt.gitee.io/img/loading.gif" alt="安全相关">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E5%AE%89%E5%85%A8/">安全相关</a>
      </h1>

      <p class="index-excerpt">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E5%AE%89%E5%85%A8/">
          
          
            
          
          常见的攻击:XSS攻击,CSRF攻击CSRF攻击的方式是跨域伪请求,冒用用户身份,让服务器以为就是用户** 预防方式: **

1.使用token认证第一次请求时服务器返回一个token(可使用JWT生成),以后每次请求都携带token,但是分布式时存在问题,每次请求都可能落在不同服务器上 导致token失效,因此得使用缓存来存储token.
使用token登录的优势：




1.无状态
2.有
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-10-12 12:38" pubdate>
              2020-10-12
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/ttntt.gitee.io/categories/%E5%9F%BA%E7%A1%80/">基础</a>
            
              <a href="/ttntt.gitee.io/categories/%E5%9F%BA%E7%A1%80/%E7%B3%BB%E7%BB%9F%E8%AE%BE%E8%AE%A1/">系统设计</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/ttntt.gitee.io/tags/Java/">Java</a>
            
              <a href="/ttntt.gitee.io/tags/%E5%AE%89%E5%85%A8/">安全</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/" target="_self">
          <img src="/ttntt.gitee.io/img/blog_img.jpg" srcset="/ttntt.gitee.io/img/loading.gif" alt="设计模式">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">设计模式</a>
      </h1>

      <p class="index-excerpt">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">
          
          
            
          
          六大原则单一职责原则(SRP)定义: There should never be more than one reason for a class to change例: 电话通话拆分为协议管理(拨号)和数据传输(通话).

注: * 单一职责原则提出了一个编写程序的标准，用“职责”或“变化原因”来衡量接口或类设计得是否优良，但是“职责”和“变化原因”都是不可度量的，因项目而异，因环境而异。

迪
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-10-12 12:38" pubdate>
              2020-10-12
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/ttntt.gitee.io/categories/%E5%9F%BA%E7%A1%80/">基础</a>
            
              <a href="/ttntt.gitee.io/categories/%E5%9F%BA%E7%A1%80/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">设计模式</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/ttntt.gitee.io/tags/Java/">Java</a>
            
              <a href="/ttntt.gitee.io/tags/%E6%9E%B6%E6%9E%84/">架构</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E5%9F%BA%E7%A1%80/" target="_self">
          <img src="/ttntt.gitee.io/img/blog_img.jpg" srcset="/ttntt.gitee.io/img/loading.gif" alt="Java基础">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E5%9F%BA%E7%A1%80/">Java基础</a>
      </h1>

      <p class="index-excerpt">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E5%9F%BA%E7%A1%80/">
          
          
            
          
          FAQ当在 try 块或 catch 块中遇到 return 语句时，finally 语句块将在⽅法返回之前被执⾏。public static int f(int value) &#123;
 try &#123;
 return value * value;
 &#125; finally &#123;
 if (value WX 2) &#123;
 return 0;
 &#125;
 &#
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-10-12 12:38" pubdate>
              2020-10-12
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/ttntt.gitee.io/categories/%E5%9F%BA%E7%A1%80/">基础</a>
            
              <a href="/ttntt.gitee.io/categories/%E5%9F%BA%E7%A1%80/Java/">Java</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/ttntt.gitee.io/tags/Java/">Java</a>
            
              <a href="/ttntt.gitee.io/tags/%E9%9D%A2%E8%AF%95/">面试</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E6%A1%86%E6%9E%B6/" target="_self">
          <img src="/ttntt.gitee.io/img/blog_img.jpg" srcset="/ttntt.gitee.io/img/loading.gif" alt="框架相关">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E6%A1%86%E6%9E%B6/">框架相关</a>
      </h1>

      <p class="index-excerpt">
        <a href="/ttntt.gitee.io/2020/10/12/basic/%E6%A1%86%E6%9E%B6/">
          
          
            
          
          
SpringMVC常用注解
@RequestMapping,@ResponseBody,@RequestBody

@Validated(开启验证),@NotBlank(验证不为空)

@PathVariable(把路径映射到参数)

@RestControllerAdvice


##　springmvc工作原理
SpringMVC是什么MVC 是一种设计模式,Spring MVC 是一款很优
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-10-12 12:38" pubdate>
              2020-10-12
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/ttntt.gitee.io/categories/%E5%9F%BA%E7%A1%80/">基础</a>
            
              <a href="/ttntt.gitee.io/categories/%E5%9F%BA%E7%A1%80/%E7%B3%BB%E7%BB%9F%E8%AE%BE%E8%AE%A1/">系统设计</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/ttntt.gitee.io/tags/Java/">Java</a>
            
              <a href="/ttntt.gitee.io/tags/%E9%9D%A2%E8%AF%95/">面试</a>
            
              <a href="/ttntt.gitee.io/tags/%E6%A1%86%E6%9E%B6/">框架</a>
            
              <a href="/ttntt.gitee.io/tags/Spring/">Spring</a>
            
              <a href="/ttntt.gitee.io/tags/SpringMVC/">SpringMVC</a>
            
              <a href="/ttntt.gitee.io/tags/Mybatis/">Mybatis</a>
            
          </div>
        
      </div>
    </article>
  </div>



  <nav aria-label="navigation">
    <span class="pagination" id="pagination">
      <span class="page-number current">1</span><a class="page-number" href="/ttntt.gitee.io/page/2/">2</a><a class="extend next" rel="next" href="/ttntt.gitee.io/page/2/"><i class="iconfont icon-arrowright"></i></a>
    </span>
  </nav>
  
  <script>
    for (ele of document.getElementById("pagination").getElementsByTagName("a")) {
      ele.href += '#board';
    }
  </script>



              </div>
            </div>
          </div>
        </div>
      </div>
    
  </main>

  
    <a id="scroll-top-button" href="#" role="button">
      <i class="iconfont icon-arrowup" aria-hidden="true"></i>
    </a>
  

  
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
  

  

  

  <footer class="mt-5">
  <div class="text-center py-3">
    <div>
      <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
      <i class="iconfont icon-love"></i>
      <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener">
        <span>Fluid</span></a>
    </div>
    
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
        <!-- 不蒜子统计UV -->
        <span id="busuanzi_container_site_uv" style="display: none">
            总访客数 
            <span id="busuanzi_value_site_uv"></span>
             人
          </span>
      
    
  </div>


    

    
  </div>
</footer>

<!-- SCRIPTS -->
<script  src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script  src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script  src="/ttntt.gitee.io/js/debouncer.js" ></script>
<script  src="/ttntt.gitee.io/js/main.js" ></script>

<!-- Plugins -->


  
    <script  src="/ttntt.gitee.io/js/lazyload.js" ></script>
  



  



  <script defer src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js" ></script>
  <script  src="/ttntt.gitee.io/js/clipboard-use.js" ></script>



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>







  <script  src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "nigntbird—a unwilling to ordinary nigntbird&nbsp;",
      ],
      cursorChar: "_",
      typeSpeed: 70,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>





  <script  src="/ttntt.gitee.io/js/local-search.js" ></script>
  <script>
    var path = "/ttntt.gitee.io/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      searchFunc(path, 'local-search-input', 'local-search-result');
      this.onclick = null
    }
  </script>









  
  
    <script>
      !function (e, t, a) {
        function r() {
          for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x + "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");
          requestAnimationFrame(r)
        }

        function n() {
          var t = "function" == typeof e.onclick && e.onclick;
          e.onclick = function (e) {
            t && t(), o(e)
          }
        }

        function o(e) {
          var a = t.createElement("div");
          a.className = "heart", s.push({
            el: a,
            x: e.clientX - 5,
            y: e.clientY - 5,
            scale: 1,
            alpha: 1,
            color: c()
          }), t.body.appendChild(a)
        }

        function i(e) {
          var a = t.createElement("style");
          a.type = "text/css";
          try {
            a.appendChild(t.createTextNode(e))
          } catch (t) {
            a.styleSheet.cssText = e
          }
          t.getElementsByTagName("head")[0].appendChild(a)
        }

        function c() {
          return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"
        }

        var s = [];
        e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {
          setTimeout(e, 1e3 / 60)
        }, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r()
      }(window, document);
    </script>
  











  
    <!-- Baidu Analytics -->
    <script defer>
      var _hmt = _hmt || [];
      (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?68846803d2c2c84a8b0f73b87244ddef";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
  

  

  

  

  

  





</body>
</html>
